package com.idbk.chargestation.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

/**
 * 自定义充电fragment适配器
 * Created by zhx on 2017/5/8.
 */

public class ChargeCustomAdapter extends FragmentPagerAdapter {

    private List<Fragment> mFragmentList;

    public ChargeCustomAdapter(FragmentManager fm , List<Fragment> mFragmentList) {
        super(fm);
        this.mFragmentList = mFragmentList;
    }

    @Override
    public Fragment getItem(int arg0) {
        // TODO Auto-generated method stub
        return mFragmentList.get(arg0);
    }

    @Override
    public int getCount() {
        // TODO Auto-generated method stub
        return mFragmentList.size();
    }

}

